import { jpamsRequest } from '@/utils/request';
import type { IPageQuery } from '@/interfaces/global';

// 列表
export function getTableDataList(data: IPageQuery) {
  return jpamsRequest({
    url: '/v1/archive-receive-batch-excel/page',
    method: 'post',
    data
  });
}
// 新增
export function addTableDataList(data: any) {
  return jpamsRequest({
    url: '/v1/archive-receive-batch-excel/',
    method: 'post',
    data
  });
}
// 编辑
export function editTableDataItem(data: any) {
  return jpamsRequest({
    url: '/v1/archive-receive-batch-excel/',
    method: 'put',
    data
  });
}
// 删除
export function delTableDataItem(id: number) {
  return jpamsRequest({
    url: '/v1/archive-receive-batch-excel/' + id,
    method: 'delete'
  });
}
